/**
 * Created by mac on 2017/12/22.
 */
import {connect} from 'react-redux'
import UserInfo from '../component/UserInfo'
import {getUserInfo} from '../actions/userInfo'
const mapStateToProps = (state) => {
    return {
        userInfo: state.userInfo.userInfo
    }
}
const mapDispatchToProps = (dispatch) => {
    return {
        getUserInfo: () => dispatch(getUserInfo())
    }
}
export default connect(mapStateToProps, mapDispatchToProps)(UserInfo)